<?php
require 'basehandle.php';
require '../dao/alldao.php';

class Gongao implements basehandle{
	public function dohandle(){
		$dao=new alldao();
 		$rs=$dao->gongao();
 		error_log($rs);
		if(!empty($rs)){
			$info=array("rs"=>"success",
				"gongao"=>$rs[0]['message'],"gimg"=>$rs[0]['img']);
		}
		else{
			$info=array("rs"=>"error","errorinf"=>"失败");
		}
		echo json_encode($info);
	}
	
}  
?>